home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / error.h < prev    next >
C/C++ Source or Header  |  1996-10-30  |  2KB  |  59 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_error_h)
  24. #define octave_error_h 1
  25.  
  26. class ostrstream;
  27.  
  28. #define panic_impossible() \
  29.   panic ("impossible state reached in file `%s' at line %d", \
  30.      __FILE__, __LINE__)
  31.  
  32. extern void message (const char *name, const char *fmt, ...);
  33. extern void usage (const char *fmt, ...);
  34. extern void warning (const char *fmt, ...);
  35. extern void error (const char *fmt, ...);
  36. extern void parse_error (const char *fmt, ...);
  37. extern void panic (const char *fmt, ...) GCC_ATTR_NORETURN;
  38.  
  39. // Current error state.
  40. extern int error_state;
  41.  
  42. // Tell the error handler whether to print messages, or just store
  43. // them for later.  Used for handling errors in eval() and
  44. // the `unwind_protect' statement.
  45. extern int buffer_error_messages;
  46.  
  47. // The message buffer
  48. extern ostrstream *error_message_buffer;
  49.  
  50. extern void symbols_of_error (void);
  51.  
  52. #endif
  53.  
  54. /*
  55. ;;; Local Variables: ***
  56. ;;; mode: C++ ***
  57. ;;; End: ***
  58. */
  59.